package com.yanu.meat.controller;

import com.yanu.meat.entity.UserDataAccount;
import com.yanu.meat.service.UserDataAccountService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (UserDataAccount)表控制层
 *
 * @author makejava
 * @since 2021-06-23 12:27:53
 */
@RestController
@RequestMapping("userDataAccount")
public class UserDataAccountController {
    /**
     * 服务对象
     */
    @Resource
    private UserDataAccountService userDataAccountService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public UserDataAccount selectOne(Integer id) {
        return this.userDataAccountService.queryById(id);
    }

}
